package com.zrt.pad.datasource.bean;

import org.json.JSONObject;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

public class UsrUser {

	private String stationid;
	private String orgcode;
	private String depcode;
	private String usercode;
	private String username;
	private String usertype;
	private String passwd;
	private String userimage;
	private String userrule;
	private String isactive;
	private String remark;
	
	
	public UsrUser() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public static UsrUser initWithJSON(JSONObject json) {
		UsrUser user = new UsrUser();
		try {
			user.stationid = json.getString("stationid");
			user.orgcode = json.getString("orgcode");
			user.depcode = json.getString("depcode");
			user.usercode = json.getString("usercode");
			user.username = json.getString("username");
			user.usertype = json.getString("usertype");
			user.passwd = json.getString("passwd");
			user.userimage = json.getString("userimage");
			user.userrule = json.getString("userrule");
			user.isactive = json.getString("isactive");
			user.remark = json.getString("remark");	

		} catch (Exception e) {
			e.printStackTrace();
		}
		return user;
	}
	
	public UsrUser(String stationid, String orgcode, String depcode,
			String usercode, String username, String usertype, String passwd,
			String userimage, String userrule, String isactive, String remark) {
		super();
		this.stationid = stationid;
		this.orgcode = orgcode;
		this.depcode = depcode;
		this.usercode = usercode;
		this.username = username;
		this.usertype = usertype;
		this.passwd = passwd;
		this.userimage = userimage;
		this.userrule = userrule;
		this.isactive = isactive;
		this.remark = remark;
	}
	public String getStationid() {
		return stationid;
	}
	public void setStationid(String stationid) {
		this.stationid = stationid;
	}
	public String getOrgcode() {
		return orgcode;
	}
	public void setOrgcode(String orgcode) {
		this.orgcode = orgcode;
	}
	public String getDepcode() {
		return depcode;
	}
	public void setDepcode(String depcode) {
		this.depcode = depcode;
	}
	public String getUsercode() {
		return usercode;
	}
	public void setUsercode(String usercode) {
		this.usercode = usercode;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getUsertype() {
		return usertype;
	}
	public void setUsertype(String usertype) {
		this.usertype = usertype;
	}
	public String getPasswd() {
		return passwd;
	}
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	public String getUserimage() {
		return userimage;
	}
	public void setUserimage(String userimage) {
		this.userimage = userimage;
	}
	public String getUserrule() {
		return userrule;
	}
	public void setUserrule(String userrule) {
		this.userrule = userrule;
	}
	public String getIsactive() {
		return isactive;
	}
	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	
}
